<%@page import="javax.xml.namespace.QName"%>
<%@page import="java.net.URL"%>
<%@page import="Proxies.CtrlUsuariosWSService"%>
<%@page import="Proxies.CtrlUsuariosWS"%>
<%

    String mail = request.getParameter("mail");
    
    String IP = (String) session.getAttribute("SERVIDOR");
    URL dirUsr = new URL(IP + "CtrlUsuarios?wsdl");
    QName qNaUsr = new QName("http://WebServices/", "CtrlUsuariosWSService");
    CtrlUsuariosWS ctrlUsr = new CtrlUsuariosWSService(dirUsr, qNaUsr).getCtrlUsuariosWSPort();
   
    if (ctrlUsr.containsKey(mail) || mail.equals(""))
        out.write("<img id=\"imgNick\" src=\"Media/images/errorNickMail.png\" align=\"top\" hspace=\"10\"/><br/>");
    else
        out.write("<img id=\"imgNick\" src=\"Media/images/correctoNickMail.png\" align=\"top\" hspace=\"10\"/><br/>");
        

%>